<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditPage.aspx.cs" Inherits="FreeLancer.HRB.WebApp.Admin.Pages.EditPage" Title="Untitled Page" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
  Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dxhe" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div>
    <div style="margin-bottom: 10px;">
      <span><%=Resources.labels.title %></span>
      <asp:TextBox runat="server" ID="txtTitle" Width="300px"></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
        ControlToValidate="txtTitle" Display="Dynamic" ErrorMessage="<%$ Resources:labels, titleReqMsg %>" />
      &nbsp;&nbsp;&nbsp;
      <span><%=Resources.labels.parents %></span>
      <asp:DropDownList runat="server" ID="cboSelectParent" Width="150px">
        <asp:ListItem Selected="True" Value="0" Text="<%$ Resources:labels, noneItem %>"></asp:ListItem>
      </asp:DropDownList>
    </div>
    <div id="Editor" style="margin-bottom: 10px;">
      <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" Width="1000px" Height="370px">
        <SettingsImageUpload>
          <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
          </ValidationSettings>
        </SettingsImageUpload>
      </dxhe:ASPxHtmlEditor>
    </div>
    <table id="entrySettings">
      <tr>
        <td class="label"><%=Resources.labels.slug %></td>
        <td>
          <asp:TextBox runat="server" ID="txtSlug" Width="400px" />
          <a href="#"><%=Resources.labels.extractFromTitle %></a>
        </td>
      </tr>    
      <tr  style="vertical-align:top;">
        <td class="label"><%=Resources.labels.description %></td>
        <td><asp:TextBox runat="server" ID="txtDescription" Width="400" TextMode="multiLine" Columns="50" Rows="4" /></td>
      </tr>
      <tr>
        <td class="label"><%=Resources.labels.keywords %></td>
        <td><asp:TextBox runat="server" ID="txtKeyword" Width="400" /></td>
      </tr>
      <tr>
        <td class="label"><%=Resources.labels.settings %></td>
        <td><asp:CheckBox runat="Server" ID="chkIsPublished" Checked="true" Text="<%$ Resources:labels, publish %>" /></td>
      </tr>
      
    </table>  
    
    <div style="text-align:right">
      <asp:Button runat="server" ID="btnSave" Text="<%$ Resources:labels, cmdUpdate %>"/>
    </div>
    <br />
  </div>
</asp:Content>
